﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DatabaseCompare.Model
{

    /// <summary>
    /// 存储过程 比较结果
    /// </summary>
    public class ProcedureCompareResult : CompareAbleResult<ProcedureInfo>
    {
        /// <summary>
        /// 创建 存储过程 的语句 不同.
        /// </summary>
        public bool CreateSQLDifference { set; get; }


        public override string GetDifferenceString()
        {

            StringBuilder buff = new StringBuilder();
            buff.Append("不匹配[");
            if (CreateSQLDifference)
            {
                buff.AppendFormat("创建存储过程的语句({0},{1})", Left.CreateSQL, Right.CreateSQL);
            }

            buff.Append("]");
            return buff.ToString();
        }
    }

}
